import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/carcome/list',
    method: 'post',
    data: query
  })
}

export function fixingPlateNumber(query) {
  return request({
    url: `/carcome/fixPlateNumber`,
    method: 'post',
    data: query
  })
}

export function fetchDetail(query) {
  return request({
    url: `/carcome/${query.id}`,
    method: 'get',
    params: query
  })
}

export function fixLeftSpaceCount(query) {
  return request({
    url: `/carcome/fixLeftSpaceCount`,
    method: 'post',
    data: query
  })
}

export function manuallyOpenRail(query) {
  return request({
    url: `/carcome/manuallyOpenRail`,
    method: 'post',
    data: query
  })
}
